package example.mapper;

import example.dto.TokenDTO;
import example.entity.Department;

import java.util.List;

public interface DepartmentMapper {
    Integer verifyDepartmentPassword(Department department);

    List<Department> listDepartment();

    void save(Department department);

    void deleteDepartment(Long departmentId);

    Long getDepartmentIdByName(String departmentName);

    String getDepartmentNameById(Long departmentId);

    List<String> listDepartmentNames();

    void saveTokenByName(TokenDTO tokenDTO);

    Department getByToken(String token);

    List<String> lisNames(Long departmentId);

    Long getLevelIdByName(String createDepartmentName);

    Integer getEmployeeNumber(String departmentName);

    Department getDepartmentByName(String departmentName);

    void  updateDepartmentDetail(Department department);

    //获取创建该部门的父部门id
    Long getParentDepartmentIdByName(String departmentName);

}
